package com.heima.wemedia.client;

import com.heima.apis.wemedia.IWmUserClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author zzy
 * @date 2022/7/27 23:07
 */

@RestController
@RequestMapping("/wemedia/user")
public class WmUserClient implements IWmUserClient {

    @Autowired
    private WmUserService wmUserService;
    @PostMapping("/add")
    @Override
    public ResponseResult addUser(Map<String, String> param) {
        return wmUserService.addUser(String.valueOf(param));
    }
}
